package miiteen.customsportal.basic.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import miiteen.common.json.jackson.LongSerialize;
import miiteen.common.utils.FieldMeta;
import miiteen.sys.base.bean.BasePo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Name: CustomsPortal_ Basic_Overview
 * Des: -Bean
 * Author: yulp
 * Date: 2020-07-03
 */
public class BasicOverview extends BasePo {
    @FieldMeta(
        name = ""
    )
    private long id;
    @FieldMeta(
        name = "标题"
    )
    private int type;
    @FieldMeta(
        name = "描述"
    )
    private String discription;
    @FieldMeta(
        name = "是否显示"
    )
    private int isDisplay;
    @FieldMeta(
        name = "图片"
    )
    private String image;
    @FieldMeta(
        name = "备注"
    )
    private String remark;
    @FieldMeta(
        name = "部门Id"
    )
    private long deptId;
    @FieldMeta(
        name = "组织ID"
    )
    private long organizeId;
    @FieldMeta(
        name = "删除状态"
    )
    private int delState;
    @FieldMeta(
        name = "创建时间"
    )
    @DateTimeFormat(
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;
    @FieldMeta(
        name = "创建人id"
    )
    private long createId;
    @FieldMeta(
        name = "创建人"
    )
    private String creator;
    @FieldMeta(
        name = "更新时间"
    )
    @DateTimeFormat(
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date updateTime;
    @FieldMeta(
        name = "更新人id"
    )
    private long updateId;
    @FieldMeta(
        name = "更新人"
    )
    private String updator;
    @FieldMeta(
        name = "部门"
    )
    private String deptName;
    @FieldMeta(
        name = "图片集合"
    )
    private List<BasicOverviewImage> list = new ArrayList();


    @FieldMeta(name="详细描述")
    private String detail;

    @JsonSerialize(
        using = LongSerialize.class
    )
    public long getId() {
        return this.id;
    }

    public void setId(long value) {
        this.id = value;
    }

    public String getDiscription() {
        return this.discription;
    }

    public void setDiscription(String value) {
        this.discription = value;
    }

    public int getIsDisplay() {
        return this.isDisplay;
    }

    public void setIsDisplay(int value) {
        this.isDisplay = value;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String value) {
        this.remark = value;
    }

    @JsonSerialize(
        using = LongSerialize.class
    )
    public long getDeptId() {
        return this.deptId;
    }

    public void setDeptId(long value) {
        this.deptId = value;
    }

    @JsonSerialize(
        using = LongSerialize.class
    )
    public long getOrganizeId() {
        return this.organizeId;
    }

    public void setOrganizeId(long value) {
        this.organizeId = value;
    }

    @JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss",
        timezone = "GMT+8"
    )
    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date value) {
        this.createTime = value;
    }

    @JsonSerialize(
        using = LongSerialize.class
    )
    public long getCreateId() {
        return this.createId;
    }

    public void setCreateId(long value) {
        this.createId = value;
    }

    public String getCreator() {
        return this.creator;
    }

    public void setCreator(String value) {
        this.creator = value;
    }

    @JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss",
        timezone = "GMT+8"
    )
    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Date value) {
        this.updateTime = value;
    }

    @JsonSerialize(
        using = LongSerialize.class
    )
    public long getUpdateId() {
        return this.updateId;
    }

    public void setUpdateId(long value) {
        this.updateId = value;
    }

    public String getUpdator() {
        return this.updator;
    }

    public void setUpdator(String value) {
        this.updator = value;
    }

    public int getDelState() {
        return this.delState;
    }

    public void setDelState(int value) {
        this.delState = value;
    }

    public String getImage() {
        return this.image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDeptName() {
        return this.deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public List<BasicOverviewImage> getList() {
        return this.list;
    }

    public void setList(List<BasicOverviewImage> list) {
        this.list = list;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
